package com.aimei.core.moduel.entity;

import com.aimei.core.moduel.entity.common.BaseClass;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @author xiah
 * @date 2018/4/26 17:45
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_code")
public class Code extends BaseClass {
       private static final long serialVersionUID = 1L;
       @TableField(strategy = FieldStrategy.NOT_EMPTY)
       private String code;
       @TableField(value = "expired_time", strategy = FieldStrategy.NOT_NULL)
       private Date expiredTime;
}
